<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extra/spring-security">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--	<link rel="icon" type="shortcut icon" th:href="@{/img/favicon.ico}" />-->
<!--	<link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}" />-->
<!--	<link rel="stylesheet" type="text/css" th:href="@{/css/global.css}" />-->
	<link rel="icon" type="shortcut icon" href="./../../static/img/favicon.ico" />
	<link rel="stylesheet" type="text/css" href="./../../static/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="./../../static/css/global.css" />
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
	<link rel="stylesheet" type="text/css" href="./../../static/css/styles.css" />
	<link rel="stylesheet" type="text/css" href="./../../static/css/bootstrap-responsive.min.css" />
	<link rel="stylesheet" type="text/css" href="./../../static/css/DT_bootstrap.css" />
	<script src="./../../static/js/jquery-3.1.0.min.js"></script>
	<script src="./../../static/js/popper.min.js"></script>
	<script src="./../../static/js/bootstrap.min.js"></script>
	<script src="./../../static/js/global.js"></script>
	<script src="./../../static/js/index.js"></script>
	<script src="./../../static/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	<title>Echo - 首页</title>
</head>

<body>	
	<div class="nk-container">
		<!-- 头部 -->
		<header class="bg-light sticky-top" th:fragment="header" style="box-shadow: 5px 5px 5px #cfcccc;">
			<div class="container">
				<!-- 导航 -->
				<nav class="navbar navbar-expand-lg navbar-dark">
					<!-- logo -->
					<a class="navbar-brand" th:href="@{/index}"></a>
					<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
						<span class="navbar-toggler-icon"></span>
					</button>
					<!-- 功能 -->
					<div class="collapse navbar-collapse" id="navbarSupportedContent">
						<ul class="navbar-nav mr-auto">
							<li class="nav-item ml-3 btn-group-vertical">
								<a class="nav-link" th:href="@{/index}">
									<i class="bi bi-house"></i> 首页
								</a>
							</li>
							<li class="nav-item ml-3 btn-group-vertical" th:if="${loginUser != null}">
								<a class="nav-link position-relative" th:href="@{/letter/list}">
									<i class="bi bi-envelope"></i> 消息
									<span class="badge badge-danger" th:text="${allUnreadCount!=0 ? allUnreadCount : ''}"></span>
								</a>
							</li>
							<li class="nav-item ml-3 btn-group-vertical" th:if="${loginUser == null}">
								<a class="nav-link" th:href="@{/register}">注册</a>
							</li>
							<li class="nav-item ml-3 btn-group-vertical" th:if="${loginUser == null}">
								<a class="nav-link" th:href="@{/login}">登录</a>
							</li>
							<li class="nav-item ml-3 btn-group-vertical dropdown" th:if="${loginUser != null}">
								<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
									<img th:src="${loginUser.headerUrl}" class="rounded-circle" style="width:30px;"/>
								</a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<!--									<a class="dropdown-item text-center" th:href="@{|/user/profile/${loginUser.id}|}"><i class="bi bi-person-fill"></i> 个人主页</a>-->
									<a class="dropdown-item text-center" href="site/profile.html"><i class="bi bi-person-fill"></i> 个人主页</a>
									<a class="dropdown-item text-center" th:href="@{/user/setting}"><i class="bi bi-gear"></i> 账号设置</a>
									<a class="dropdown-item text-center" th:href="@{/data}" sec:authorize="hasAnyAuthority('admin')"><i class="bi bi-clipboard-data"></i> 数据统计</a>
									<a class="dropdown-item text-center" th:href="@{/logout}"><i class="bi bi-box-arrow-right"></i> 退出登录</a>
									<div class="dropdown-divider"></div>
									<span class="dropdown-item text-center text-secondary" th:utext="${loginUser.username}"></span>
								</div>
							</li>
							<li class="nav-item ml-3 btn-group-vertical">
								<a class="nav-link" href="https://gitee.com/veal98/CS-Wiki">🔥 CS-Wiki</a>
							</li>
						</ul>
						<!-- 搜索 -->
						<form class="form-inline my-2 my-lg-0" method="get" th:action="@{/search}">
							<input class="form-control mr-sm-2" type="search" name="keyword" th:value="${keyword}" aria-label="Search" />
							<button class="btn btn-outline-light my-2 my-sm-0 serach-btn" type="submit"><i class="bi bi-search"></i> 搜索</button>
						</form>
					</div>
				</nav>
			</div>
		</header>

		<!-- 内容 -->
		<div class="main">
			<div class="container">
				<div class="row">
					<div class="col-md-1"></div>
					<div class="col-md-7"><h3>我的模板</h3></div>
					<div class="col-md-4"><button type="button" class="btn btn-success" role="button" data-toggle="modal"
												  data-target="#addModal">增加</button></div>
				</div>

				<table class="table table-striped table-hover">
					<thead>
					<tr>
						<th></th>
						<th>模板名称</th>
						<th>logo</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr>
						<th scope="row">1</th>
						<td>Mark</td>
						<td>Otto</td>
						<td>@mdo</td>
						<td>
							<a href="gwadmin.html" class="btn btn-info btn-sm" role="button">编辑</a>
							<a href="gwadmin.html" class="btn btn-danger btn-sm" role="button">删除</a>
						</td>
					</tr>
					<tr>
						<th scope="row">2</th>
						<td>Jacob</td>
						<td>Thornton</td>
						<td>@fat</td>
						<td>
							<a href="gwadmin.html" class="btn btn-info btn-sm" role="button">编辑</a>
							<a href="gwadmin.html" class="btn btn-danger btn-sm" role="button">删除</a>
						</td>
					</tr>
					<tr>
						<th scope="row">3</th>
						<td>Larry</td>
						<td>the Bird</td>
						<td>@twitter</td>
						<td>
							<a href="gwadmin.html" class="btn btn-info btn-sm" role="button">编辑</a>
							<a href="gwadmin.html" class="btn btn-danger btn-sm" role="button">删除</a>
						</td>
					</tr>
					</tbody>
				</table>

				<!-- Modal -->
				<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
					<div class="modal-dialog" role="document">
						<div class="modal-content">
							<div class="modal-header">
								<h4 class="modal-title" id="myModalLabel">创建模板</h4>
							</div>
							<div class="modal-body">
								<form>
									<div class="form-group">
										<label for="exampleFormControlInput1">模板名称:</label>
										<input type="email" class="form-control" id="exampleFormControlInput1" placeholder="大唐有限公司">
									</div>
									<div class="form-group">
										<label for="exampleFormControlSelect1">模板类型:</label>
										<select class="form-control" id="exampleFormControlSelect1">
											<option>个人模板</option>
											<option>企业模板</option>
										</select>
									</div>
									<div class="form-group">
										<label for="exampleFormControlFile1">上传Logo:</label>
										<input type="file" class="form-control-file" id="exampleFormControlFile1">
									</div>
								</form>
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-danger" data-dismiss="modal">放弃</button>
								<a type="button" class="btn btn-success" href="gwdetail.html">保存</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>


		<!-- 尾部 -->
		<footer class="bg-dark" th:fragment="footer" style="background-color: rgb(149,117,244) !important;">
			<div class="container">
				<div class="row">
					<!-- 个人二维码 -->
					<div class="col-4 qrcode">
						<img src="https://gitee.com/veal98/images/raw/master/img/20210209221134.png" class="img-thumbnail" style="width:136px;" />
					</div>
					<!-- 公司信息 -->
					<div class="col-4 detail">
						<div class="row">
							<div class="col">
								<ul class="nav btn-group-vertical company-info">
									<li class="nav-item text-white-50" style="font-weight: 800">
										<i class="bi bi-heart"></i> 联系作者：
									</li>
									<li class="nav-item text-white-50">
										微信扫描左侧二维码，联系作者 — 飞天小牛肉
									</li>
									<li class="nav-item text-white-50" style="font-weight: 800">
										<i class="bi bi-book"></i> 关注公众号：
									</li>
									<li class="nav-item text-white-50">
										微信扫描右侧二维码，关注公众号回复 Echo 免费获取本项目的全部教程文档
									</li>
								</ul>
							</div>
						</div>
					</div>
					<!-- 公众号二维码 -->
					<div class="col-4 qrcode">
						<img src="https://gitee.com/veal98/images/raw/master/img/20210209220036.png" class="img-thumbnail" style="width:136px;" />
					</div>
				</div>
			</div>
		</footer>
	</div>

<!--	<script th:src="@{/js/jquery-3.1.0.min.js}"></script>-->
<!--	<script th:src="@{/js/popper.min.js}"></script>-->
<!--	<script th:src="@{/js/bootstrap.min.js}"></script>-->
<!--	<script th:src="@{/js/global.js}"></script>-->
<!--	<script th:src="@{/js/index.js}"></script>-->


</body>
</html>
